GLOFA GM Loader communication driver

 

GLOFA GM Loader communication driver is the driver to communicate with GLOFA GM series PLC of Loader port of LSIS Co., Ltd. in Korea.

In order to communicate with GLOFA PLC's Loader port, you have to connect RS-232C communication cable.

 

1. Read settings

 

<Figure 1> is read setting example of GLOFA GM Loader communication driver. 

<Figure 1>  Read setting example of GLOFA GM Loader communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(38400), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively.

 

Note) GLOFA GM Loader port's Baud rate, Parity Bit, Data Bit, Stop Bit are fixed to 38400, 0, 8, 1.

 

GLOFA GM Loader communication driver read schedule

Read schedule setting parameters are as follows:

1) STATION – Don't care. ( Fixed to 0 )

2) Read memory type – Memory type.( Refer to <Table 1> )

IW , ID, IX : Word, Dword, 10 Bit unit data read of  'I'(input) memory area,

QW, QD, QX : Word, Dword, 10 Bit unit data read of  'Q'(output) memory area,

MW, MD, MF, MX : Word, Dword, Float, 10 Bit unit data read of  'M'(internal) memory area.

3) Read start address – Read start address in memory.( I, Q memory = fixed to 0 )

4) Save Start Address for Communication Server – saveing start address of Communication Server.

5) Read Size – Word/Dword/Float unit read size.

IW, QW, MW memory type = Word unit read size,

ID, QD, MD memory type = Dword unit read size,

MF memory type = Float(Dword) unit read size,

IX, QX, MX memory type = 10 Bit unit read size. ( 1 = 10 bit ) 

6) Base number – 0 ~ 127 Base number when I, Q memory.

7) Slot number – 0 ~ 15 Slot number when I, Q memory.

 

Read schedule example)

READ,    0,   IW,   0,   0,  2,   0,   0,

READ,    0,   QW,   0,   2,  2,   0,   1,

READ,    0,   MW,   0,  10,  16,

DWORD, 0,   MD, 120,  4,  16,

 

<Table 1> is memory type and contents of Glofa PLC.

Memory type

Contents

Read/Write

Remarks

IW

Word unit read for I memory

Read only

Use decimal unit

address for

all memory type

QW

Word unit read and write for Q memory

R/W

MW

Word unit read and write for M memory

ID

Double word unit read for I memory

Read only

QD

Double word unit read and write for Q memory

R/W

MD

Double word unit read and write for M memory

IX

10 bit unit read for I memory

Read only

QX

10 bit unit read for Q memory

R/W

MX

10 bit unit read for M memory

<Table 1> Memory type and contents of Glofa PLC

If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part. 

<Figure 2> Example of GLOFA GM Loader communication driver¡¯s Option dialogue box

 You can set read schedule by using , , button and listbox of <Figure 2>.  

<Figure 3> Example of GLOFA GM Loader communication driver¡¯s read schedule Add/Edit dialogue box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can set Glofa PLC by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care. ( Fixed to 0 ) 

3)  ADDRESS          Decimal unit write address in memory.

M memory type : decimal unit write address,

Q memory type : upper 2 ~ 6 digit = Slot number,    lower 2 digit = Point number.

4)  Extra1                   Write memory type = M, Q, etc.

5)  Extra2                   Base number when Q memory type.(decimal unit)

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0011, EXTRA1 : M,  EXTRA2 :

The setting parameter shown above is a control(On/Off) example for %MX0011.

 

Write example 2) 

PORT : 0  Station : 0, ADDRESS : 0102, EXTRA1 : Q,  EXTRA2 : 0

The setting parameter shown above is a control(On/Off) example for 0 Base, 1 Slot, 2(3rd) point number of Q memory type.( %QX0.1.2 )

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care. ( Fixed to 0 ) 

3)  ADDRESS          Decimal unit write address in memory.

M memory type : decimal unit write address,

Q memory type : upper 2 ~ 6 digit = Slot number,    lower 2 digit = Point number.

4)  Extra1                   Write memory type.

MB, QB : Byte unit write,

MW, QW, M, Q : Word unit write,

MD, QD : Double Word unit write,

MF : Float unit write. 

5)  Extra2                   Base number when Q memory type.(decimal unit)

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0100, EXTRA1 : QW,  EXTRA2 :  0

The setting parameter shown above is a control(On/Off) example for 0 Base, 1 Slot, 0 point from 16 bit(1 word) of Q memory type.( %QW0.1.0 )

 

Write example 2) 

PORT : 0  Station : 0, ADDRESS : 0003, EXTRA1 : MB,  EXTRA2 : 0

The setting parameter shown above is byte unit write example for 0003 byte of M memory type.( %MB0003 )

 

Write example 3) 

PORT : 0  Station : 0, ADDRESS : 0012, EXTRA1 : MW,  EXTRA2 : 0

The setting parameter shown above is word write example for 0012 word of M memory type.( %MW0012 )

 

Write example 4) 

PORT : 0  Station : 0, ADDRESS : 0095, EXTRA1 : MD,  EXTRA2 :

The setting parameter shown above is double word write example for 0095 double word of M memory type.( %MD0095 )